import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'

// 引入图标
import 'static/iconfont/iconfont.css'

// 导入全局组件
import navBar from './components/navBar.vue'
import tabBar from './components/tabBar.vue'
import waterfallFlow from './components/waterfallFlow.vue' //瀑布流组件
import loading from './components/loading.vue'
Vue.component('navBar',navBar)
Vue.component('tabBar',tabBar)
Vue.component('waterfallFlow',waterfallFlow)
Vue.component('loading',loading)

// mixin混入
import share from './common/share.js'
Vue.mixin(share)

// 导入Vuex
import store from './store/index.js'
Vue.prototype.$store = store

const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif